package com.bckj.freshnow.order.trade.fsm.enums;

import com.bckj.freshnow.common.constant.TradeOrderConstants;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum TradeOrderEventEnum {
    PAY_SUCCESS(TradeOrderConstants.EVENT_PAY_SUCCESS, "账单支付完成"),
    CANCEL_ORDER(TradeOrderConstants.EVENT_CANCEL_ORDER, "用户发起取消订单或订单超时取消"),
    OVER_AFTER_SALE(TradeOrderConstants.EVENT_OVER_AFTER_SALE, "订单超过售后期"),
    FULL_REFUND(TradeOrderConstants.EVENT_FULL_REFUND, "订单全部退款"),
    HAVE_AFTER_SALE(TradeOrderConstants.EVENT_HAVE_AFTER_SALE, "订单存在进行中的售后单"),
    AFTER_SALE_SUCCESS(TradeOrderConstants.EVENT_AFTER_SALE_SUCCESS, "售后单完成"),
    ;

    private final int code;
    private final String name;
  }